
part of 'players_tab_cubit.dart';

/// Events must be immutable and implement the [Equatable] interface.
@immutable
abstract class PlayersTabEvent extends Equatable {}

/// Event that is dispatched when the Login widget is first created.
class PlayerTabInitialEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class AddPlayerSuccessTapEvent extends PlayersTabEvent {
  final User user;
  AddPlayerSuccessTapEvent({required this.user});

  @override
  List<Object?> get props => [];
}

class AddPlayerFailedTapEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class AddPlayerLoadingTapEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class UpdatePlayerSuccessEvent extends PlayersTabEvent {
  final User user;
  UpdatePlayerSuccessEvent({required this.user});

  @override
  List<Object?> get props => [user];
}

class UpdatePlayerFailedEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class UpdatePlayerLoadingEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class DeletePlayerSuccessEvent extends PlayersTabEvent {
  final String? userId;
  DeletePlayerSuccessEvent({required this.userId});

  @override
  List<Object?> get props => [userId];
}

class DeletePlayerFailedEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class DeletePlayerLoadingEvent extends PlayersTabEvent {
  @override
  List<Object?> get props => [];
}

class ChangeSelectMode extends PlayersTabEvent {
  final bool mod;

  ChangeSelectMode({required this.mod});
  @override
  List<Object?> get props => [mod];
}
class ChangeSelectedItem extends PlayersTabEvent {
  final bool value;
  final User user;

  ChangeSelectedItem({required this.value,required this.user});
  @override
  List<Object?> get props => [value,user];
}

class TabSelectAll extends PlayersTabEvent {
  final bool value;
  TabSelectAll({required this.value});
  @override
  List<Object?> get props => [value];
}